<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div>
    <h2>Demonstrating Friendships</h2>
    <p>Log onto the site to see users and your friends.</p>
    <p>
        <asp:Label ID="MessageLabel" runat="server"></asp:Label>
    </p>
    <asp:GridView ID="ExistingUsers" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="ProviderUserKey" DataSourceID="ObjectDataSource1" 
        onselectedindexchanged="ExistingUsers_SelectedIndexChanged">
        <Columns>
            <asp:CommandField ShowSelectButton="True" />
            <asp:BoundField DataField="UserName" HeaderText="User Name" ReadOnly="True" 
                SortExpression="UserName" />
            <asp:CheckBoxField DataField="IsApproved" HeaderText="Is Approved" 
                SortExpression="IsApproved" />
            <asp:CheckBoxField DataField="IsLockedOut" HeaderText="Is Locked Out" 
                ReadOnly="True" SortExpression="IsLockedOut" />
            <asp:CheckBoxField DataField="IsOnline" HeaderText="Is Online" ReadOnly="True" 
                SortExpression="IsOnline" />
        </Columns>
    </asp:GridView>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
        OldValuesParameterFormatString="original_{0}" SelectMethod="GetAllUsers" 
        TypeName="MyNamespace.MembershipController"></asp:ObjectDataSource>
</div>
</asp:Content>

